<body>
	<div id="wrapper">
		<header></header>
			<div id="content">
				
				<?php
					if(isset($_GET["logout"]) && $_GET["logout"] == true){								
						echo "<h1>Good bye!</h1><p>You have successfully logged out. Log in again or leave \"Goals to Success\". See you soon!</p>";
					}else if (isset($_GET['reg'])){ ?>
						<p>
							Hello <?php echo $_GET['reg']; ?>, you have successfully signed up. Now you can manage and attain your goals. We wish you much success!
						</p>
					<?php }else{ ?>	
						<h1>Hello again!</h1>					
						<p>
							Have you made any progress on your goals? Or maybe reached one or more of them? That would be great! Log in and check what you have made yet!
						</p>
				<?php } ?>
				
				<div class="right">
					<h2>Log in</h2>					
					<?php						
						if (isset($loginErrorMessage)){
							echo "<div class=\"errors\">";
							echo "<p>";
							echo $loginErrorMessage."<br/>";
							echo "</p>";
							echo "</div>";
						}											
					?>
					<form id="login" action="?page=overview" method="post">
						<label>E-Mail:</label>
						<input type="email" name="email" />
						<br />
						<label>Password:</label>
						<input type="password" name="password" />
						<br />
						<input type="submit" value="Login" name="loginButton" />
					</form>
					<p>
						You don't have an account yet? <a href="index.php?page=registration">Sign up</a> now!
					</p>
				</div>
			</div>
		<footer></footer>
	</div>
</body>
